package com.cai.primeton.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.*;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/7/1 11 : 29
 * @package：com.cai.primeton.entity
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Entity(name = "pbook")
@ApiModel(value = "书籍实体")
public class PBook {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;  //编号
    @Column(name = "number")
    private Long number;//图书编号
    @Column(name = "name")
    private String name; //图书名称
    @Column(name = "author")
    private String author;//作者
    @Column(name = "press")
    private String press;//出版社
    @Column(name = "type")
    private Integer type;//图书类型

}
